//字符串的拓展方法

const message = "Error: foo is not defined.";

console.log(message.startsWith("Error")); //true
console.log(message.endsWith("ed.")); //true
console.log(message.includes("is")); //true
